package com.sq.partner.manager.service.impl;

import java.sql.SQLException;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.IGatewayTransManagerDao;
import com.sq.partner.manager.mybatis.model.GatewayTrans;
import com.sq.partner.manager.mybatis.model.GatewayTxLog;
import com.sq.partner.manager.service.IGatewayTransManagerService;
import com.sq.partner.manager.util.Page;

@Service
public class GatewayTransManagerServiceImpl extends BaseServiceImpl<GatewayTrans, String> implements
		IGatewayTransManagerService {

	@Resource
	private IGatewayTransManagerDao gatewayTransManagerDao;
	
	@Override
	public Page<GatewayTrans>  querypage(Page<GatewayTrans> page,String channel,String trxDate,String trxCode,String deptCode,String mark,String subPartnerNo,String applicationCode) throws SQLException{
		
		return gatewayTransManagerDao.queryPage(page,channel,trxDate,trxCode,deptCode,mark,subPartnerNo,applicationCode);
	}

	@Override
	public Page<GatewayTxLog>  getDetialGatewayTxLogVo(Page<GatewayTxLog>  page) throws Exception {
		page.setData(gatewayTransManagerDao.getDetailTxLogVo(page.getType()));
		return page;
	}
		
}
